package com.ruoyi.make.service.impl;

import com.ruoyi.make.domain.CpProduct;
import com.ruoyi.make.domain.ProductAttributeResult;
import com.ruoyi.make.mapper.CpProductMapper;
import com.ruoyi.make.service.CpProductService;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 12486
* @description 针对表【cp_product(产品表)】的数据库操作Service实现
* @createDate 2024-06-24 11:34:29
*/
@Service
public class CpProductServiceImpl
    implements CpProductService
{
    @Resource
    private CpProductMapper cpProductMapper;
    @Override
    public List<CpProduct> findProduct(String cpName) {
        return cpProductMapper.findProduct(cpName);
    }

    @Override
    public List<ProductAttributeResult> selectProductAttributes(String cpCode) {
        return cpProductMapper.selectProductAttributes(cpCode);
    }
}




